package com.lagou.rpc.consumer.config;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "server")
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class ServerProperties {

    private List<ServerConfig> configs = new ArrayList<>();


}
